package com.xinchuang.mapper;

import com.xinchuang.domain.entity.TestModelSubTable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author GHKJ002
* @description 针对表【test_model_sub_table】的数据库操作Mapper
* @createDate 2023-06-29 17:02:40
* @Entity com.xinchuang.domain.TestModelSubTable
*/
@Mapper
public interface TestModelSubTableMapper extends BaseMapper<TestModelSubTable> {

    @Select(value = "SELECT IFNULL(COUNT(1),0) FROM test_model_sub_table WHERE mold_id = #{moldId}")
    int getTryTimes(String moldId);

}




